<form>
<fieldset class="layui-elem-field">
    <legend>接口说明</legend>
    <div class="layui-field-box">
        <div class="layui-form-item">
            <label class="layui-form-label">接口列表</label>
            <div class="layui-input-block">
                <select name="api_list" lay-filter="select<%=formid%>">
                    <% for(let item of method){ %>
                    <option value="<%=item['id']%>"><%=item['name']%></option>
                    <% } %>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">接口名称</label>
            <div class="layui-input-block">
                <input readonly type="text" name="api_name"  class="layui-input" />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">接口地址</label>
            <div class="layui-input-block">
                <input readonly type="text" name="api_url"  class="layui-input" />
            </div>
        </div>
    </div>
</fieldset>


<fieldset class="layui-elem-field">
    <legend>参数列表</legend>
    <div class="layui-field-box">
        <% for(let item of param){ %>
        <div class="layui-form-item">
            <label class="layui-form-label"><%=item.key%>(<%=item.type%>)</label>
            <div class="layui-input-inline">
                <input type="text" name="<%=item.key%>"  class="layui-input" />
            </div>
            <div class="layui-form-mid layui-word-aux"><%=item.name%></div>
        </div>
        <% } %>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="submit<%=formid%>">立即提交</button>
            </div>
        </div>
    </div>
</fieldset>



<% if(tip) {%>
<fieldset class="layui-elem-field">
    <legend>提示</legend>
    <div class="layui-field-box">
    <% for(let item of tip){ %>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<label class="layui-red"><%=item%></label>
    <br>
    <%}%>
    </div>
<%}%>
</fieldset>

<fieldset class="layui-elem-field">
    <legend>调试结果</legend>
    <div class="layui-field-box">
        <textarea readonly name="api_result" lay-filter="result<%=formid%>" class="layui-textarea"  style= "background:transparent;border-style:none; "></textarea>
    </div>
</fieldset>

</form>